<!DOCTYPE html>
<!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]-->
<!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]-->
<!--[if IE 8 ]><html class="ie ie8" lang="en"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!--><html lang="en"> <!--<![endif]-->
<head>

	<!-- Basic Page Needs
  ================================================== -->
	<meta charset="utf-8" />
	<title>博客-详情页</title>
    <meta name="robots" content="index, follow" />
    <meta name="keywords" content="" />
    <meta name="description" content="" />
	<meta name="author" content="" />
	<!-- 载入公共头部 -->
	{{include file="VIEW_PATH/Common/header.php"}}
	
        
        <!-- BEFORE CONTENT -->
        <div id="outerbeforecontent">
        	<div class="container">
            <div class="row">
                <div id="beforecontent" class="twelve columns">
                </div>
            </div>
            </div>
        </div>
        <!-- END BEFORE CONTENT -->


        <!-- MAIN CONTENT -->
        <div id="outermain">
        	<div class="container">
                <div class="row">
           
                    <section id="maincontent" class="eight columns positionleft">
                    	<div class="padcontent">

                            <section class="content">
								<article class="post">
                                    <div class="date-wrapper"> 
										<div class="date-value">{{$arcData['click']}}</div>
                                        <div class="month-value">点击量</div>
                                    </div>
                                	<div class="header-wrapper">
                                        <h2 class="posttitle"><a>{{$arcData['title']}}</a></h2>
                                        <div class="entry-utility">
                                            <div class="user">发布者: <a href="#">{{$arcData['author']}}</a></div> 
                                            <div class="tag">Tags: 
                                            	{{foreach from="$tagData" key="$tid" value="$tname"}}
                                            	<a href="{{U('Lists/index',array('tid'=>$tid))}}">{{$tname}}</a>
                                            	{{endforeach}}
                                            </div>
                                        </div>
                                    </div>
                                    <div class="clear"></div>
                                    <div class="postimg">
                                        <img src="{{__ROOT__}}/{{$arcData['imgs']}}" />
                                    </div>
       								<div class="entry-content" style="border:0px none;">
                                      		{{$arcData['content']}}
                                    </div>
                                    <style type="text/css">
                                                .praise{
                                                        width: 100%;
                                                        height: 30px;
                                                        line-height: 30px;
                                                }
                                                .comment-area{
                                                        width: 562px;
                                                        height: 220px;
                                                        position: relative;
                                                }
                                                .comment-area textarea{
                                                        padding: 15px 10px 20px;
                                                        color: #555;
                                                        border: 1px solid #d0d6d9;
                                                        outline: none;
                                                        box-shadow: 2px 2px 2px #F0F0F0 inset !important;
                                                }
                                                .comment-area .input-x{
                                                            line-height: 1.6em;
                                                            border: 1px solid #d0d6d9;
                                                            box-shadow: 2px 2px 2px #F0F0F0 inset !important;
                                                            color: #555;
                                                            font-size: 12x;
                                                            outline: none;
                                                            padding: 2px 10px 2px;
                                                            margin-bottom: 10px; 
                                                }
                                                #sub{
                                                        position: absolute;
                                                        top: 200px;
                                                        left:280px;
                                                }
                                                #hd{
                                                        position: absolute;
                                                        top: 200px;
                                                        left:210px;
                                                }
                                    </style>

                                    
                                    <div class="praise">
		                      <button class="hd-btn hd-btn-success hd-btn-sm" id="praise">点赞 <span id="num">({{$arcData['praise']}})</span></button>
                                              <button class="hd-btn hd-btn-primary hd-btn-sm" id="comment">评论</button>
                                    </div>  
                                   <div class="clear"></div>
                                </article>
                                <script type="text/javascript">
                                            var comUrl = "{{U('Comment/comment')}}";
                                            var praiseUrl = "{{U('Comment/praise')}}"
                                 </script>
                                <!-- 评论区域 -->
                                <article class="post" id="comment-area">
                                            <div class="comment-area">
                                                        <form method="post" id="com-from" action="">
                                                                <p>匿名:</p>
                                                                <p><input type="text" name="nickname" class="input-x"></p>
                                                                <p>内容:</p>
                                                                <textarea class="hd-w300 hd-h90" name="content"></textarea>
                                                                <input type="hidden" name="aid" value="{{$_GET['aid']}}">
                                                                <input type="submit" class="hd-btn hd-btn-primary hd-btn-sm" value="提交" id="sub">
                                                        </form>
                                                        <button class="hd-btn hd-btn-danger" id="hd">取消</button>
                                            </div>
                                </article>
                                
                                <div id="comdata-area">
                                    {{if value="$cData"}}
                                        {{foreach from="$cData" value="$v"}}
        			     <div class="author">
                                                <h3>{{$v['nickname']}}:</h3>
                                                <div class="alignleft"></div>
                                                <div class="author-desc">
                                                 <span class="tdate">{{date('Y-m-d H:i:s',$v['addtime'])}}</span>
                                                 <p>{{$v['content']}}</p>
                                                </div>
                                            </div>
                                            <div class="separator"></div>
                                        {{endforeach}}
                                    {{endif}}
                                 </div>

{{if value="$cData"}}
                    {{if value="$total > 2"}}
                    <div class="wp-pagenavi">
<style type="text/css">
.page{
            width:500px;
            height:25px;
            line-height: 25px;
            list-style: none;
}
.page li{
 float: left;
}
.page li.active a{
   color: #e85244;
}
</style>
                                    
                                    <ul class="page">{{$page}}</ul>
                                </div>
                                {{endif}}
{{endif}}


                        </div>
                    </section>
                    
                   <!-- 载入右侧内容 -->
                {{include file="VIEW_PATH/Common/right.php"}}
                 
                </div>
            </div>
        </div>
        <!-- END MAIN CONTENT -->


 <!-- FOOTER -->
{{include file="VIEW_PATH/Common/floor.php"}}
